##
## Makefile for bomberman in /home/lefebv_w//workspace/cpp/bomberman/tests/compil
## 
## Made by damien lefebvre
## Login   <lefebv_w@epitech.net>
## 
## Started on  Thu May  2 18:18:36 2013 damien lefebvre
## Last update Thu May 30 10:32:33 2013 mickael gomes
##

NAME			=	menu
CC			=	g++
RM			=	rm -f
ECHO			=	echo -e

CFLAGS			=	-Wall -Wextra --pedantic -g
IFLAGS			=	-I../libgdl/include
LFLAGS			=	-lm -L../libgdl/lib -Wl,--rpath=../libgdl/lib -lgdl_gl -lGL -lGLU  -lsfml-audio
SRCS			=	main.cpp						\
				Camera.cpp	 					\
				MenuManager.cpp						\
				Menu.cpp						\
				Cursor.cpp						\
				Vector3f.cpp						\
				NewGame.cpp						\
				Continue.cpp						\
				Options.cpp						\
				Numbers.cpp						\
				Rectangle.cpp


OBJS			=	$(SRCS:.cpp=.o)

all			:	$(NAME)

$(NAME)			:	$(OBJS)
				$(CC) -o $(NAME) $(OBJS) $(CFLAGS) $(IFLAGS) $(LFLAGS)
				@$(ECHO) '\033[0;32m> Menu Compiled\033[0m'

%.o			:	%.cpp
				$(CC) -o $@ -c $< $(IFLAGS) $(CFLAGS)

clean			:
				$(RM) $(OBJS)
				@$(ECHO) '\033[0;36m> Object files removed\033[0m'

fclean			:	clean
				$(RM) $(NAME)
				@$(ECHO) '\033[0;36m> Binary files removed\033[0m'

re			:	fclean all
